﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using MvcEngine.Core;
using MvcEngine.Core.Content;
using MvcEngine.Mvc.Extensions;

namespace MvcEngine.Contact.Components.Extensions
{
    public static class UrlHelperExtensions
    {
        #region Starter site
        
        public static string SendEmail(this UrlHelper urlHelper)
        {
            return urlHelper.RouteUrl("ContactSendEmail");
        } 

        #endregion

        #region BackOffice
        
        public static string Settings(this UrlHelper urlHelper, int ctrId)
        {
            return urlHelper.RouteUrl("BackOffice_Contact", new { ctrId = ctrId });
        }

        public static string Contacts(this UrlHelper urlHelper)
        {
            return urlHelper.RouteUrl("BackOffice_ContactList");
        } 

        #endregion
    }
}
